package com.ruoyi.elebook.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 电子书对象 book_elebook
 *
 * @author ruoyi
 * @date 2023-12-11
 */
public class BookElebook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 电子书id */
    private Long id;

    /** 电子书名称 */
    @Excel(name = "电子书名称")
    private String name;

    @Excel(name = "作者")
    private String author;

    @Excel(name = "出版社")
    private String press;
    /** 文件原名称 */
    @Excel(name = "文件原名称")
    private String fileName;

    /** 文件图片页数 */
    @Excel(name = "文件图片页数")
    private Long filePages;

    /** 文件路径名 */
    @Excel(name = "文件路径名")
    private String fileUrl;

    /** 文件所属专业名称 */
    @Excel(name = "文件所属专业名称")
    private Long majorId;

    /** 生成访问链接 */
    @Excel(name = "生成访问链接")
    private String accessUrl;


    /** 生成访问链接 */
    @Excel(name = "状态")
    private String status;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFilePages(Long filePages)
    {
        this.filePages = filePages;
    }

    public Long getFilePages()
    {
        return filePages;
    }
    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }
    public void setMajorId(Long majorId)
    {
        this.majorId = majorId;
    }

    public Long getMajorId()
    {
        return majorId;
    }
    public void setAccessUrl(String accessUrl)
    {
        this.accessUrl = accessUrl;
    }

    public String getAccessUrl()
    {
        return accessUrl;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("author", getAuthor())
            .append("press",getPress())
            .append("fileName", getFileName())
            .append("filePages", getFilePages())
            .append("fileUrl", getFileUrl())
            .append("majorId", getMajorId())
            .append("accessUrl", getAccessUrl())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
